﻿@{
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
    ViewBag.Title = "企业信息操作";
}
@section htmlhead{
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />

    <style type="text/css">
        .bdsug {
            position: absolute;
            width: 269px;
            background: #fff;
            display: none;
            border: 1px solid #817f82;
        }

        .bdsug li {
            width: 253px;
            color: #000;
            font: 14px arial;
            line-height: 25px;
            padding: 0 8px;
            position: relative;
            cursor: default;
        }
        .bdsug li:hover {
            background: #ebebeb;
        }
    </style>
    <script src="~/Content/editor/kindeditor-min.js"></script>
    <script src="~/Content/editor/lang/zh_CN.js"></script>
}

@model LY.Entity.T_Enterprise
<div class="container">
    <div id="forms" class="mt10">
        <div class="box">
            <div class="box_border">
                <div class="box_top"><b class="pl15">企业信息操作</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;带“ <span style="color: red">*</span> ”标示为必填项</div>
                <div class="box_center">
                      <form  id="frmEdit" method="post" action="@Url.Action("SaveEnterprise")" role="form" class="jqtransform">
                        <input id="hideId" name="ID" value="@Model.ID" type="hidden" />
                        <table class="form_table pt15 pb15" style="width: 100%;" border="0">
                            <tr>
                                <td class="td_left"><span style="color: red">*</span>&nbsp;企业名称：</td>
                                <td class="">
                                    <input type="text"  id="EnterpriseName" name="EnterpriseName" maxlength="20" value="@Model.EnterpriseName" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left"><span style="color: red">*</span>&nbsp;借款金额：</td>
                                <td class="">
                                    <input type="text" id="BorrowAmount" name="BorrowAmount" value="@Model.BorrowAmount"      maxlength="13" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left"><span style="color: red">*</span>&nbsp;借款期限：</td>
                                <td class="">
                                    <input type="text" id="LoanPeriod" name="LoanPeriod" maxlength="3" value="@Model.LoanPeriod" class="input-text lh30" size="40">个月
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left"><span style="color: red">*</span>&nbsp;联系方式：</td>
                                <td class="">
                                    <input type="text" id="Tel" name="Tel" maxlength="20" value="@Model.Tel" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left">企业概况：</td>
                                <td class="">
                                    <input type="hidden" id="Remarks" name="Remarks" >
                                    <textarea id="Rem"   style="width: 70%; height: 140px;"  maxlength="600">@Model.Remarks</textarea>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_center" colspan="5">
                                    <input type="button" id="btnSave" name="button" style="margin-right: 50px;" class="btn btn82 btn_save2" value="提交">
                                    <input type="button" id="btnReturn" name="button" class="btn btn82 btn_res" value="返回">
                                </td>
                            </tr>
                        </table>
                    </form>
                   @* <form  id="frmEdit" method="post" action="@Url.Action("SaveEnterprise")" role="form" class="jqtransform">
                        <input id="hideId" name="ID" value="@Model.ID" type="hidden" />
                        <table class="form_table pt15 pb15" style="width: 100%;" border="0">
                            <tr>
                                <td class="td_left"><span style="color:red">*</span>&nbsp;企业名称：</td>
                                <td class="">
                                    <input type="text"  id="EnterpriseName" name="EnterpriseName" value="@Model.EnterpriseName" maxlength="20" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color:red">*</span>&nbsp;法人代表：</td>
                                <td class="">
                                    <input type="text" id="LegalRepresentative" name="LegalRepresentative" maxlength="10" value="@Model.LegalRepresentative" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left"><span style="color:red">*</span>&nbsp;注册日期：</td>
                                <td class="">
                                    <input type="text" onclick="WdatePicker()" readonly="true" id="RegistedDate" name="RegistedDate" value="@Model.RegistedDate" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color:red">*</span>&nbsp;注册资金：</td>
                                <td class="">
                                    <input type="text" onblur="util.GetNum(this.id,this.value);" id="RegistedCapital" name="RegistedCapital" value="@Model.RegistedCapital"  maxlength="13" class="input-text lh30" size="40"><span style="color:red;">万</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left"><span style="color:red">*</span>&nbsp;资产净值：</td>
                                <td class="">
                                    <input type="text" onblur="util.GetNum(this.id,this.value);" id="AssetAmt" name="AssetAmt" maxlength="13" value="@Model.AssetAmt" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color:red">*</span>&nbsp;经营现金流入：</td>
                                <td class="">
                                    <input type="text" onblur="util.getFloatStr(this.id,this.value);" id="OperatingCashflow" name="OperatingCashflow" maxlength="13" value="@Model.OperatingCashflow" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left"><span style="color:red">*</span>&nbsp;行业：</td>
                                <td class="">
                                    <input type="text" id="Trade" name="Trade" value="@Model.Trade" maxlength="10" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color:red">*</span>&nbsp;经营情况：</td>
                                <td class="">
                                    <input type="text" id="BusinessCircumstance" name="BusinessCircumstance" maxlength="15" value="@Model.BusinessCircumstance" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left"><span style="color:red">*</span>&nbsp;涉诉情况：</td>
                                <td class="">
                                    <input type="text" id="LitigationSituation" name="LitigationSituation" value="@Model.LitigationSituation" maxlength="10" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_center" colspan="5">
                                    <input type="button" id="btnSave" name="button" style="margin-right: 50px;" class="btn btn82 btn_save2" value="保存">
                                    <input type="button" id="btnReturn" name="button" class="btn btn82 btn_res" value="返回">
                                </td>
                            </tr>
                        </table>
                    </form>*@
                </div>  
            </div>
        </div>
    </div>
</div>
@section jssection{
    <script type="text/javascript">
        ////编辑器
        //KindEditor.ready(function (K) {
        //    window.editor = K.create('textarea', {
        //        resizeType: 1,
        //        allowPreviewEmoticons: false,
        //        allowImageUpload: true,
        //        minWidth: 350,
        //        allowFileManager: true,
        //        afterBlur: function () {
        //            this.sync();
        //        }

        //    });
        //});

        var util = {};
        var options = {
        };        
        
    </script>

    <script src="~/Content/assets/plugins/validator/validator.js"></script>
    <script src="~/Content/assets/app/enterprise/enterpriseedit.js"></script>

}
